﻿using Microsoft.Extensions.DependencyInjection;
using Stee.CAP8.MessageBus.Sagas.Core.Extensions;
using Stee.CAP8.MessageBus.Sagas.Messages.Events.Payment;
using Stee.CAP8.MessageBus.Sagas.Payment.Handlers;
using System;

namespace Stee.CAP8.MessageBus.Sagas.Payment
{
    class Program
    {
        static void Main(string[] args)
        {
            var services = new ServiceCollection();
            services.UseKafkaSubsrcibeStore().AddEventBus().AddMessagebusHandler<PaymentHandler>().UseEventBus(bus =>
            {
                bus.HandleEvent();


            });

            services.AddSubscrbe<PayemntEvent>();

            Console.Read();
        }
    }
}
